package com.cumin.shiyin.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author YangJian.Kan
 * @version 1.0
 * @date 2020/4/14 22:07
 */
@Data
@ConfigurationProperties(prefix = "sy.core.cors")
public class CorsProperties {
    /**
     * 跨域配置url
     */
    private String mappingUrl;
    /**
     * 是否允许发送cookie
     */
    private Boolean allowCredentials;
    /**
     * 允许跨域的来源域名
     */
    private String[] allowOrigins;
    /**
     * 允许跨域获得的header
     */
    private String[] allowHeaders;
    /**
     * 允许跨域请求的类型
     */
    private String[] allowMethods;


}
